package edu.scau.nutzDao.dbc;

import org.nutz.dao.Dao;
import org.nutz.dao.impl.NutDao;
import org.nutz.dao.impl.SimpleDataSource;

public class DatabaseConnection {

	private Dao dao=null;
	public DatabaseConnection(){
		SimpleDataSource ds = new SimpleDataSource();
	      ds.setJdbcUrl("jdbc:mysql://localhost:3306/mldn");
	      ds.setUsername("root");
	      ds.setPassword("mysqladmin");
	      dao = new NutDao(ds);
	}
	public Dao getDao(){
		return dao;
	}
}
